import axios from 'axios'
import {Toast} from 'mint-ui'
export function axiosNet(url,params,successback) {
    axios.post(HOST + url, params).then((res) => {
        res = res.data
        let result = res.result
        if (result == 'success') {
            successback(res)
        } else {
            Toast({
                message: res.message,
                position: 'bottom',
                duration: '2000'
            })
        }

    })
}